﻿using RPAVIEW.util;
using RPAVIEW.views.controlLibrary;
using RPAVIEW.views.OtherPages;
using SUNRPA.CONTROLS.IMPL.domain.flowItemParam;
using System.Windows.Controls;
using FScreen = System.Windows.Forms.Screen;

namespace RPAVIEW.views.EditPage.flows.ClickWinEleN {
    /// <summary>
    /// Input.xaml 的交互逻辑
    /// </summary>
    public partial class Input:BaseParamViewAction{
        public Input() {
            InitializeComponent();
        }

        public override void UpdateSource() {
            this.eleName.GetBindingExpression(SelVarTextBox.text).UpdateSource();
        }

        private void GetElement(object sender, System.Windows.RoutedEventArgs e) {
            MainWindow main = WindowUtil.GetWindow<MainWindow>();
            //main.ShowInTaskbar = false;
            WindowUtil.MinSizeWindow(main);
            GetEleWindow eleWindow = new GetEleWindow((ele) => {
                ClickWinEleNParam param = ParamUtil.GetCurrentParam<ClickWinEleNParam>();
            });
            eleWindow.Show();
        }
    }
}
